<?php

use app\assets\AdminAsset;

AdminAsset::register($this);
$upload_config = Yii::$app->params['upload'];
?>
<?php $this->beginPage() ?>
    <html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>管理后台</title>
        <?php $this->head() ?>
    </head>

    <body>
    <?php $this->beginBody() ?>
    <div id="wrapper">
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="sidebar-collapse">
                <ul class="nav metismenu" id="side-menu">
                    <li class="nav-header">
                        <div class="profile-element text-center">
                            <img alt="image" class="img-circle" src="/images/web/logo.png"/>
                            <p class="text-muted">宝丽汽车服务</p>
                        </div>
                        <div class="logo-element">
                            <img alt="image" class="img-circle" src="/images/web/logo.png"/>
                        </div>
                    </li>
                    <li class="dashboard">
                        <a href="/admin/dashboard/index"><i class="fa fa-dashboard fa-lg"></i>
                            <span class="nav-label">仪表盘</span></a>
                    </li>
                    <li class="account">
                        <a href="/admin/account/index"><i class="fa fa-user fa-lg"></i> <span
                                    class="nav-label">账号管理</span></a>
                    </li>
                    <li class="account">
                        <a href="/admin/yuyue/index"><i class="fa fa-user fa-lg"></i> <span
                                    class="nav-label">预约管理</span></a>
                    </li>
                    <li class="brand">
                        <a href="/admin/brand/info"><i class="fa fa-cog fa-lg"></i> <span class="nav-label">品牌设置</span></a>
                    </li>
                    <li class="book">
                        <a href="/admin/book/index"><i class="fa fa-book fa-lg"></i> <span
                                    class="nav-label">商品管理</span></a>
                    </li>
                    <li class="member">
                        <a href="/admin/member/index"><i class="fa fa-group fa-lg"></i> <span
                                    class="nav-label">会员列表</span></a>
                    </li>
                    <li class="finance">
                        <a href="/admin/finance/index"><i class="fa fa-rmb fa-lg"></i> <span
                                    class="nav-label">财务管理</span></a>
                    </li>
                    <li class="market">
                        <a href="/admin/qrcode/index"><i class="fa fa-share-alt fa-lg"></i> <span
                                    class="nav-label">营销渠道</span></a>
                    </li>
                    <li class="stat">
                        <a href="/admin/stat/index"><i class="fa fa-bar-chart fa-lg"></i> <span
                                    class="nav-label">统计管理</span></a>
                    </li>
                </ul>

            </div>
        </nav>

        <div id="page-wrapper" class="gray-bg" style="background-color: #ffffff;">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header">
                        <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="javascript:void(0);"><i
                                    class="fa fa-bars"></i> </a>

                    </div>
                    <ul class="nav navbar-top-links navbar-right">
                        <li>
                        <span class="m-r-sm text-muted welcome-message">
                            欢迎使用宝丽汽车服务管理后台
                        </span>
                        </li>
                        <li class="hidden">
                            <a class="count-info" href="javascript:void(0);">
                                <i class="fa fa-bell"></i>
                                <span class="label label-primary">8</span>
                            </a>
                        </li>


                        <li class="dropdown user_info">
                            <a class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);">
                                <img alt="image" class="img-circle" src="/images/web/avatar.png"/>
                            </a>
                            <ul class="dropdown-menu dropdown-messages">
                                <li>
                                    <div class="dropdown-messages-box">
                                        姓名：征哥哥 <a href="/admin/user/edit" class="pull-right">编辑</a>
                                    </div>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <div class="dropdown-messages-box">
                                        手机号码：11012345679
                                    </div>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <div class="link-block text-center">
                                        <a class="pull-left" href="/admin/user/reset-pwd">
                                            <i class="fa fa-lock"></i> 修改密码
                                        </a>
                                        <a class="pull-right" href="/admin/user/logout">
                                            <i class="fa fa-sign-out"></i> 退出
                                        </a>
                                    </div>
                                </li>
                            </ul>
                        </li>

                    </ul>
                </nav>
            </div>

            <?= $content; ?>

        </div>

    </div>

    <div class="hidden_layout_warp hide">
        <input type="hidden" name="upload_config" value='<?= json_encode($upload_config); ?>'/>
    </div>

    <?php $this->endBody() ?>
    </body>
    </html>
<?php $this->endPage() ?>